import React, { Context } from 'react'

export const createContext = <T extends object>(defaultValue: T): Context<T> => React.createContext(defaultValue)
